package feedsec;
public class Test {
	public static void main(String [] args){
		Feeder feeder = new Feeder("chen");
		 Animal animals[]=null;
		 animals = new Animal[16];
	        animals[0] = new Lion("meat");
	        animals[0].toeat();
	        feeder.feeder(animals[0]);
	        for(int i = 0; i < 5; i++){
	            animals[i + 1] = new Monkey("banana");
	            animals[i+1].toeat();
	            feeder.feeder(animals[i]);
	        }
	        for(int i = 0; i < 10; i++){
	            animals[6 + i] = new Pigeon("xiaomai");
	            animals[6+i].toeat();
	            feeder.feeder(animals[i]);
	        }

	}
}

